class Human:
    def __init__(self,age,appetite,hight,weight,blood):
        self.age=age
        self.appetite=appetite
        self.hight=hight
        self.weight=weight
        self.blood=blood
def eat(self):
    print("饭量:{self.appetite}.")
def sleep(self):
    print("睡觉")
def celebrate(self):
    print("庆祝生日！")
def grow(self):
    if self.hight<200:
        self.hight+=1
        print(f"长高了1cm,现在身高{self.hight}cm")
    else:
        print("最高身高.")
    human=Human(age=19,appetite='中',hight=175,weight=70,blood='o')
    human.eat(2)
    human.sleep(10)
    human.celebrate()
    human.grow()

class Student(Human):
    grade= {'A': 85, 'B': 70, 'C': 60, 'D': 0}

    def __init__(self, id, score):
        self.id = id
        self.score = score
        def calculate_grade(self):
            for grade, threshold in self.grade.items():
                if self.score >= threshold:
                    return grade
        return 'D'

student1 = Student(1, 85)
print(student1.id)
print(student1.score)
print(student1.calculate_grade())
print(Student.grade)
